package wwl.lsf.simple.zhuru;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import org.apache.dubbo.common.URL;
import org.apache.dubbo.common.extension.ExtensionLoader;

public class CarInterfaceDemo {

  public static void main(String[] args) throws IOException {
    Map map = new HashMap();
    map.put("maoxian", "red");
    URL url = new URL("", "", 1, map);
    ExtensionLoader<CarInterface> extensionLoader = ExtensionLoader
        .getExtensionLoader(CarInterface.class);
    CarInterface benz = extensionLoader.getExtension("benz");
    benz.getColor(url);

    System.in.read();//为了让代码停在这里
  }

}
